package com.tzy.dishes.service;
import com.tzy.common.entity.User;
import org.springframework.stereotype.Component;
/**
 * 熔断和限流接口实现类
 */
@Component
public class UserServiceFallback implements UserServiceRpc {
    @Override
    public User getUserInfoById(int serviceId) {
        System.out.println("执行Fallback熔断限流");
        return new User();
    }
    @Override
    public int insert(User user) {
        System.out.println("执行Fallback熔断限流");
        return 0;
    }
}
